﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="EmployeeDetails.aspx.cs" Inherits="WebChamCong.EmployeeDetails" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="page_title" runat="server">
Chi Tiết Nhân Viên
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content_header" runat="server">
    Chi Tiết Nhân Viên : <asp:Label ID="lb_empName" runat="server" Text="Label"></asp:Label>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="content" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
                <p>
                    Bộ Phận Làm Việc : <asp:Label ID="lb_departName" runat="server" Text="Label"></asp:Label>
                </p>
                <p>
                    Ngày Tính Công : <asp:Label ID="lb_datedshift" runat="server" Text="Label"></asp:Label>
                </p>
                <p>
                    <asp:Label ID="lb_annoucement" runat="server" Text="Label"></asp:Label>
                </p>
                <p>
                    <asp:GridView ID="gv_detailedEmp" runat="server" Width="100%"
                         EmptyDataText="Empty" 
                        AutoGenerateColumns="False" onrowcommand="gv_detailedEmp_RowCommand" 
                        onrowdatabound="gv_detailedEmp_RowDataBound" ShowFooter="True">
                        <Columns>
                            <asp:TemplateField HeaderText="Ngày">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lb_Day" runat="server" Text='<%# Eval("Day") %>' 
                                        CommandName="LoadHistory"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="Ca" DataField="Shift" />
                            <asp:BoundField HeaderText="Đặc cách" DataField="Hday" />
                            <asp:BoundField HeaderText="Giờ Vào" DataField="ComeInHours" />
                            <asp:BoundField HeaderText="Giờ ăn trưa" DataField="ComeOutMealAfternoon" />
                            <asp:BoundField HeaderText="Giờ vào trưa" DataField="ComeInMealAfternoon"/>
                            <asp:BoundField HeaderText="Giờ ăn tối" DataField="ComeOutMealEvening"/>
                            <asp:BoundField HeaderText="Giờ vào tối" DataField="ComeInMealEvening" />
                            <asp:BoundField HeaderText="Giờ Về" DataField="ComeOutHours" />
                            <asp:BoundField HeaderText="Thời Lượng Ăn Trưa" 
                                DataField="TotalMealAfternoon" />
                            <asp:BoundField  DataField="TotalMealEvening" />
                            <asp:BoundField  DataField="TotalGoOut" />
                            <asp:BoundField  DataField="TotalLatedWorking" />
                            <asp:BoundField HeaderText="Về Sớm " DataField="TotalSoonGoOut" />
                            <asp:BoundField HeaderText="Ăn Trễ" DataField="LatedMeal" />
                            <asp:BoundField HeaderText="Giờ Chuẩn" DataField="TotalStandardHours" />
                            <asp:BoundField HeaderText="Giờ Làm Việc Thực Tế" 
                                DataField="TotalWorkedHours" />
                        </Columns>
                        <FooterStyle BackColor="#FFFF99" BorderStyle="None" />
                    </asp:GridView>
                </p>
                
            <asp:Panel ID="pn_listHistory" runat="server" Style="display:none" CssClass="modalPopup">
            <div>
             <p>
                <asp:GridView ID="GridView1" runat="server" EmptyDataText="History is empty" 
                    AutoGenerateColumns="False">
                    <Columns>
                        <asp:BoundField DataField="CheckTime" HeaderText="Check Time" />
                        <asp:BoundField DataField="CheckType" HeaderText="Type" />
                    </Columns>
                </asp:GridView>
            </p>
            <p>
                <asp:Label ID="lb_Date" runat="server" Text="Label"></asp:Label>
            </p>
            <p>
                <asp:GridView ID="gv_history" runat="server" EmptyDataText="History is empty" 
                    AutoGenerateColumns="False">
                    <Columns>
                        <asp:BoundField DataField="CheckTime" HeaderText="Check Time" />
                        <asp:BoundField DataField="CheckType" HeaderText="Type" />
                    </Columns>
                </asp:GridView>
            </p>
            <p>
                <asp:Button ID="btn_cancel" runat="server" Text="Cancel" />
            </p>
            </div>            
            </asp:Panel>
            <asp:LinkButton ID="LinkButton1" runat="server" Enabled="false">Version :1.0.1</asp:LinkButton>
            <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="LinkButton1"  PopupControlID="pn_listHistory" BackgroundCssClass="modalBackground" CancelControlID="btn_cancel" ></asp:ModalPopupExtender>
            
        </ContentTemplate>

        
    </asp:UpdatePanel>
    <asp:Button ID="Bt_export" runat="server" Text="Xuất file" 
                    onclick="Bt_export_Click" />
</asp:Content>
